{config_load file="$language/affiliate.conf" section="affiliate_summary"}
<h1 class="contentBoxHeading">{#heading_title#}</h1>
<table width="100%">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td class="main">{#text_greeting#}{$affiliate.affiliate_firstname}&nbsp;{$affiliate.affiliate_lastname}<br />{#text_affiliate_id#}{$affiliate.affiliate_id}</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td class="main">{$FORM_ACTION}{#text_affiliate_period#}{$period_selector}</form></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="infoboxheading">{#text_summary_title#}</td>
          </tr>
        </table></td>
      </tr>
{literal}
<script language="javascript"><!--
function popupAffWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=450,height=120,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
{/literal}      
      <tr>
        <td><table width="100%" border="0" cellpadding="4" cellspacing="2">
          <tr>
            <td width="35%" align="right" class="boxtext">{#text_impressions#}{$LINK_IMPRESSION}{#text_summary_help#}</a></td>
            <td width="15%" class="boxtext">{$affiliate_impressions}</td>
            <td width="35%" align="right" class="boxtext">{#text_visits#}{$LINK_VISIT}{#text_summary_help#}</a></td>
            <td width="15%" class="boxtext">{$affiliate.clickthrough_count}</td>
          </tr>
          <tr>
            <td width="35%" align="right" class="boxtext">{#text_transactions#}{$LINK_TRANSACTIONS}{#text_summary_help#}</a></td>
            <td width="15%" class="boxtext">{$affiliate_transactions}</td>
            <td width="35%" align="right" class="boxtext">{#text_conversions#}{$LINK_CONVERSION}{#text_summary_help#}</a></td>
            <td width="15%" class="boxtext">{$affiliate_conversions}</td>
          </tr>
          <tr>
            <td width="35%" align="right" class="boxtext">{#text_amount#}{$LINK_AMOUNT}{#text_summary_help#}</a></td>
            <td width="15%" class="boxtext">{$affiliate_amount}</td>
            <td width="35%" align="right" class="boxtext">{#text_average#}{$LINK_AVERAGE}{#text_summary_help#}</a></td>
            <td width="15%" class="boxtext">{$affiliate_average}</td>
          </tr>
          <tr>
            <td width="35%" align="right" class="boxtext">{#text_comission_rate#}{$LINK_COMISSION_RATE}{#text_summary_help#}</a></td>
            <td width="15%" class="boxtext">{$affiliate_percent}</td>
            <td width="35%" align="right" class="boxtext">{#text_comission#}{$LINK_COMISSION}{#text_summary_help#}</a></td>
            <td width="15%" class="boxtext">{$affiliate_commission}</td>
          </tr>
        </table></td>
      </tr>
      {if AFFILATE_USE_TIER == 'true'}
      <tr>
        <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="infoboxheading">{#text_summary_title_tier#}</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellpadding="4" cellspacing="2">
		  {$affiliate_percent_tier_table}
        </table></td>
      </tr>
      {/if}
      <tr>
        <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td align="center" class="boxtext" colspan="4"><b>{#text_summary#}<b></td>
          </tr>
          <tr>
            <td align="right" colspan="4">{$LINK_BANNER}&nbsp;&nbsp;{$LINK_CLICKS}&nbsp;&nbsp;{$LINK_SALES}</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
